
package org.moyakarta.rest;

import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;

@Provider
public class PlaceNotFoundExceptionMapper implements ExceptionMapper<PlaceNotFoundException>
{
   public Response toResponse(PlaceNotFoundException exception)
   {
      return Response.status(404).entity(exception.getMessage()).type("text/plain").build();
   }
}
